package com.yunji.order.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yunji.common.base.PageDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.util.List;

/**
 * @Project: yunji-coffee
 * @Package: com.yunji.order.vo
 * @Title: TradeParam
 * @Description: 交易列表筛选信息
 * History:
 * Date						Version			Author			Summary
 * ========================================================================
 * 2024-04-27 11:36:14		V1.0			HuaAo		新建类
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class TradeParam extends PageDTO {
    @ApiModelProperty("账户类型 11 代理商 13 网点")
    private List<String> accountTypeList;

    @ApiModelProperty("账户名称")
    private String accountName;

    @ApiModelProperty("手机号")
    private String accountTel;

    @ApiModelProperty("交易类型(后端叫交易模式界面叫交易类型) 0-收益(下单) 1-提现 2-退款")
    private List<Integer> tradeModeList;

    @ApiModelProperty("支付类型 (0:支出;1:收入)")
    private Integer payType;

    @ApiModelProperty("支付方式 (0:余额支付;1:微信支付;2:支付宝)")
    private List<Integer> payModeList;

    @ApiModelProperty(value = "平台流水号")
    private String transactionNo;

    @ApiModelProperty("第三方交易流水号/第三方流水号")
    private String apiCode;

    @ApiModelProperty("交易时间(创建时间)开始")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDate createTimeS;
    @ApiModelProperty("交易时间(创建时间)结束")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDate createTimeE;
}